nbCities = 70;
nbOneWays = 3000;

count = zeros(10,10);

filePrefix = strcat('data/',num2str(nbCities),'/');
for i = 1:10
    for j = 1:10
        datafile = strcat(filePrefix,num2str(i),'/','genCost',num2str(nbOneWays),'_',...
            num2str(j),'.dat');
         resultFile = strcat(filePrefix,num2str(i),'/','Result',num2str(nbOneWays),'_',...
            num2str(j),'.dat');
        GenCosts = csvread(datafile);
        result = csvread(resultFile);

        count(i,j) = calculateDists( result, GenCosts, 1000 );
    end
end